

OBJ=obj
SRC=src
EXE=bin
CPPFLAGS=-c -g
CXX=g++

SRCFILES=
OBJFILES=$(OBJ)/findDupNum.o \
         $(OBJ)/copy_struct.o \
         $(OBJ)/findMissingNum.o \

all: testFindDupNum.exe \
     testFindMissingNum.exe \
     install

testFindDupNum.exe : $(OBJ)/testFindDupNum.o $(OBJFILES)
	$(CXX) -o $@ $^

testFindMissingNum.exe : $(OBJ)/testFindMissingNum.o $(OBJFILES)
	$(CXX) -o $@ $^

$(OBJ)/%.o : $(SRC)/%.cpp
	$(CXX) $(CPPFLAGS) -o $@ $<

install:
	mv *.exe $(EXE)/.

clean:
	rm -rf 	$(OBJ)/*.o $(EXE)/*.exe
